<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html >
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" type="text/css" media="screen" href="${ROOT_PATH }content/scripts/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" media="screen" href="${ROOT_PATH }content/css/storefront.css">
	<title>员工作品上传</title>
	<script src="${ROOT_PATH }content/scripts/jquery-1.10.1.min.js"></script>
	<script src="${ROOT_PATH }content/scripts/jquery.form.js"></script>
	<script src="${ROOT_PATH }content/scripts/juery.hammer.js"></script>
	<script src="${ROOT_PATH }content/scripts/bootstrap/js/bootstrap.min.js"></script>
	<style type="text/css">
		*{}
		body{
			background:url(${ROOT_PATH }content/images/front/amani1_02.png) no-repeat;background-size: 100% 100%;
			color:#fff;
		}
	</style>
</head>
<body>
	<section>
		<div><a href="${ROOT_PATH }Staff/work">添加</a></div>
		<div class="works">
			<c:forEach var="work" items="${works}">
				<div class="work">
					<div class="work-body">
						<img class="workshow" src="${work.imageurl.value }" onclick="toWork(${work.id.value})">
					</div>
				</div>
			</c:forEach>
		</div>
	</section>
	<script type="text/javascript">
		function toWork(id){
			location.href="${ROOT_PATH }Staff/work?id="+id;
		}
	</script>
</body>
</html>